/**********************************************************************************************/
/* FBL_Starter_Mac.cpp                                                 						  */
/*                                                                       					  */
/* Copyright Paradigma, 1993-2006															  */
/* All Rights Reserved                                                   					  */
/**********************************************************************************************/

#include <VShared/FBL/publ/Headers/StdAfx.h>

#include <VShared/FBL/publ/Starter/FBL_Starter.h>
#include <VShared/FBL/publ/Util_classes/FBL_String.h>



/**********************************************************************************************/
FBL_Begin_Namespace


/**********************************************************************************************/
// Define kernel DLL name.
//
const char* GetKernelDllName( void )
{
	const char* kernelDLLName = 0;

// ---------------------------------------------------------------------
#if FBL_WIN

	#ifdef _MSC_VER
		#ifdef _DEBUG
			kernelDLLName = "Kernel_Win32_Debug.dll";
		#else
			kernelDLLName = "Kernel_Win32_Release.dll";
		#endif //_DEBUG
	#else
		#if __CHECK
			kernelDLLName = "Kernel_Win32_Debug_CW.dll";
		#else
			kernelDLLName = "Kernel_Win32_Final_CW.dll";
		#endif //__CHECK
	#endif //_MSC_VER

#endif // FBL_WIN


// ---------------------------------------------------------------------
#if FBL_MAC_CARBON

	#if __CHECK 
		kernelDLLName = "Kernel_Carbon_Debug.shlb";
	#else
		#if __profile__
			kernelDLLName = "Kernel_Carbon_FinalPro.shlb";
		#else
			kernelDLLName = "Kernel_Carbon_Final.shlb";
		#endif // __profile__
	#endif // __CHECK

#endif // FBL_MAC_CARBON


// ---------------------------------------------------------------------
#if FBL_MAC_MACHO

	#ifdef __GNUC__

		#if __CHECK 
			#if _FBL_UNIVERSAL
			    kernelDLLName = "libvkernel_fat_debug.dylib";
			#else
				kernelDLLName = "libvkernel_ppc_debug.dylib";
			#endif
		#else
			#if _FBL_UNIVERSAL
				kernelDLLName = "libvkernel_fat_release.dylib";
			#else
				kernelDLLName = "libvkernel_ppc_release.dylib";
			#endif
		#endif // __CHECK

	#else // __GNUC__

		#if __CHECK 
			kernelDLLName = "Kernel_Macho_BSD_Debug.dylib";
		#else
			kernelDLLName = "Kernel_Macho_BSD_Final.dylib";
		#endif // __CHECK

	#endif // __GNUC__
	
#endif // FBL_MAC_MACHO


// ---------------------------------------------------------------------
#if FBL_UNIX
	#if __CHECK
		kernelDLLName = "libVKernel_Linux_Debug.so";
	#else
		kernelDLLName = "libVKernel_Linux_Release.so";
	#endif // __CHECK
#endif // FBL_UNIX

	return kernelDLLName;
}


#pragma mark -


/**********************************************************************************************/
// Define client DLL name.
//
const char* GetClientDllName( void )
{
	const char* clientDLLName = 0;

// ---------------------------------------------------------------------
#if FBL_WIN
	#ifdef _MSC_VER
		#ifdef _DEBUG
			clientDLLName = "VClient_Win32_Debug_VC.dll";
		#else
			clientDLLName = "VClient_Win32_Release_VC.dll";
		#endif //_DEBUG
	#else
		#if __CHECK
			clientDLLName = "vclient_win32_cw_d.dll";
		#else
			clientDLLName = "VClient_Win32_CW.dll";
		#endif //__CHECK
	#endif //_MSC_VER
#endif //FBL_WIN

// ---------------------------------------------------------------------
#if FBL_MAC_CARBON 

	#if __CHECK 
		clientDLLName = "vclient_carbon_cw_d.shlb";
	#else
		#if __profile__
			clientDLLName = "vclient_carbon_prof_cw.shlb";
		#else
			clientDLLName = "vclient_carbon_cw.shlb";
		#endif // __profile__
	#endif // __CHECK

#endif // FBL_MAC_CARBON


// ---------------------------------------------------------------------
#if FBL_MAC_MACHO 

	#ifdef __GNUC__

		#if __CHECK 
			#if _FBL_UNIVERSAL
				clientDLLName = "libvclient_fat_debug.dylib";
			#else
				clientDLLName = "libvclient_ppc_debug.dylib";
			#endif
		#else
			#if _FBL_UNIVERSAL
				clientDLLName = "libvclient_fat_release.dylib";
			#else
				clientDLLName = "libvclient_ppc_release.dylib";
			#endif
		#endif // __CHECK

	#else // __GNUC__
	
		#if __CHECK 
			clientDLLName = "vclient_macho_bsd_debug.dylib";
		#else
			clientDLLName = "vclient_macho_bsd_final.dylib";
		#endif // __CHECK
		
	#endif // __GNUC__

#endif // FBL_MAC_MACHO

// ---------------------------------------------------------------------
#if FBL_UNIX
	#if __CHECK
		clientDLLName = "libVClient_Linux_Debug.so";
	#else
		clientDLLName = "libVClient_Linux_Release.so";
	#endif // __CHECK
#endif // FBL_UNIX


	return clientDLLName;
}


/**********************************************************************************************/
FBL_End_Namespace
